﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000017 RID: 23
	public class InterfaceCollectionFormatter<T> : CollectionFormatterBase<T, T[], ICollection<T>>
	{
		// Token: 0x06000051 RID: 81 RVA: 0x00002CA3 File Offset: 0x000010A3
		protected override void Add(T[] collection, int index, T value)
		{
			collection[index] = value;
		}

		// Token: 0x06000052 RID: 82 RVA: 0x00002CAD File Offset: 0x000010AD
		protected override T[] Create(int count)
		{
			return new T[count];
		}

		// Token: 0x06000053 RID: 83 RVA: 0x00002CB5 File Offset: 0x000010B5
		protected override ICollection<T> Complete(T[] intermediateCollection)
		{
			return intermediateCollection;
		}
	}
}
